<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        div{
            background-color: pink;
            width: 100px;
            height: 100px;
            position: absolute;
            left: 0; 
            /* 调用动画 */
            /* animation:动画名称 花费时间 运动曲线 何时开始 播放次数 是否反向 */
            animation: move 3s ease 0s ;
        }
        img{
            width: 400px;
            height: auto;
            animation: heart 0.5s infinite;
        }
        @keyframes heart{
            0% {
                transform: scale(1);
            }
           50% {
                transform: scale(1.1);
            }
            100% {
                transform: scale(1);
            }
        }
        /* @keyframes move{
            from{
                left: 0;
            }
            to{
                left: 1000px;
            }
        } */
    </style>
</head>
<body>
    <img src="./images/xin.jpg" alt="">
</body>
</html>